﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Explain : MonoBehaviour
{
	public GameObject m_explain;

	public void Close()
	{
		Destroy(m_explain);
	}

	public void Show()
	{
		GameObject obj = LoadPrefab.Instance.LoadPrefab2Scenes<GameObject>("UI/Panel_Explain", true, "Canvas");
		obj.GetComponent<Explain>().m_explain = obj;

		RectTransform rect = obj.GetComponent<RectTransform>();
		rect.offsetMax = Vector2.zero;
		rect.offsetMin = Vector2.zero;
				


	}
}
